<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="../../../css/admin.css"/>
<script type="text/javascript" src="../../../js/jquery.js"></script>
<script type="text/javascript" src="../../../js/changebgcolor.js"></script>
<script type="text/javascript" src="../../../js/calendar.js"></script>
<script type="text/javascript" src="../../../js/ui_util.js"></script>
<script type="text/javascript" src="../js/merchandise_init.js"></script>
<script type="text/javascript" src="../js/invoice_util.js"></script>
<!--<script type="text/javascript" src="js/purchase.js"></script>-->
<script type="text/javascript">
window.onload = function (){
	init();	
	create_shipment_type();
	
	selectSupplier();
	selectWarehouse();
	selectAttn();
};
</script>
</head>
<body>
<div id="div_header" >
  <div id="div_titel">
    出货管理
  </div>
</div>
<form action="javascript:void()">
<div align="left" style="margin-bottom:10px; padding-left:13px; color:red;">
  类别&nbsp;<select id="type" style="width:40px" onchange="selectSupplier()"></select>&nbsp;
  单号&nbsp;<input id="invoiceCid" />&nbsp;
  <span id="is_sell">客户&nbsp;<select id="supplier" style="width:100px"></select>&nbsp;</span>
  出货日期&nbsp;<input id="arrival_date" onclick="calendar.setHook(this);" readonly="readonly" size="10" style="cursor:pointer;" />&nbsp;
  经办人&nbsp;<select name="buyer" size="1" id="attn" style="width: 100px"></select>&nbsp;
  <!--<input value="打印单据" type="button" />-->
  <br />
</div>
<div align="center">
  <table class="list" border="0" cellspacing="1" width="840"  >
    <thead>
      <tr>
        <th class="list" width="200">货品名称</th>
        <th class="list" width="">规格型号</th>
        <th class="list" width="100">单价</th>
        <th class="list" width="100">数量</th>
        <th class="list" width="50">单位</th>
        <th class="list" width="100">总金额</th>
        <th class="list" width="40"><a href="javascript:void(0)" onclick="add_merchandise(-1)">添加</a></th>
        <th class="list" width="15">&nbsp;</th>
      </tr>
    </thead>   
    <tbody>
      <tr>
        <td class="list" style="padding:0; margin:0;" colspan="8">
        <div style="width:100%; height:400px; overflow-y:scroll; padding:0; margin:0;">
          <table class="list" id="merchandise_list" border="0" cellspacing="1" style="border:0; width:821px; height:100%; "  >
              <tr id="foot">
                <td style="border-bottom:0;" class="list" width="200">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="100">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="100">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="50">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="100">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="40">&nbsp;</td>
              </tr>
          </table>
        </div>
        </td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <th class="list" colspan="5" style="text-align:right; padding-right:30px;">合计</th>
        <th class="list" width="100"><input type="text" id="invoice_total" readonly="readonly" value="0" style="width:94px; border:0; background:#ccc; color:#F00; font-weight:bolder; text-align:right;" /></th>
        <th class="list" colspan="2">&nbsp;</th>
      </tr>
    </tfoot>
  </table>
  <div style="margin-top:10px;">
    备注&nbsp;<input id="memo" size="105" />&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="reset" value="重置" />&nbsp;|&nbsp;<input type="button" value="保存" onclick="saveInvoice()" style="width:80px;" class="submit" />
  </div>
</div>
</form>
</body>
</html>
